#include <iostream>
#include "vectorfunctions.h"

int _10tob(int x[], int n, int b)
{	
	int i=0;
	do{
		x[i]=n%b;
		n /= b;
		++i;	
	}while (n>0);
	mirror(x, i);
return i;			
}

int main()
{
	int l, n, b;
	int x[100];
	cout<<"Enter number : ";
	cin>>n;
	cout<<"Enter base : ";
	cin>>b;
	l = _10tob(x, n, b);
	printVector(x, l);
	
return 0;
}
